<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="stylesheet" href="__STATIC__/admin/Bootstrap/Css/bootstrap.min.css" />
	<link rel="stylesheet" href="__STATIC__/admin/Css/common.css" />
	<!--<style type="text/css">
		body{
			margin-bottom: 100px;
		}
	</style>-->
	<style type="text/css">
	
		/*分页样式*/
		.cms_page{
			text-align: center;
		}
		.cms_page strong{
			margin-left: 3px;
			padding: 6px 5px;
			/*border: 1px solid #1FBD9E;*/
		}
		.cms_page a{
			margin-left: 3px;
			padding: 6px 5px;
			border: 1px solid #ccc;
		}
		.cms_page span.close{
			float: none;
		}
	</style>
</head>
<body>
	<div class="container-fluid">
	<div class="row-fluid">
	<div class="span12">

	<table class="table table-bordered table-hover">
		<tr>
			<th>ID</th>
			<th>商品名称</th>
			<th>价格</th>
			<th>库存</th>
			<th>点击次数</th>
			<th>添加时间</th>
			<th>操作</th>
		</tr>
		<foreach from="$goodsData" value="$v" key="$k">
			<tr class="info">
				<td>{$v.gid}</td>
				<td>{$v.gname}</td>
				<td>
					<ul>
						<li>市场价：<del>&yen;{$v.marketprice}</del></li>
						<li>商城价：<span>&yen;{$v.shopprice}</span></li>
					</ul>
				</td>
				<td>
					<if value="$v['gsum']">
						{$v.gsum}
					<else/>
						<a href="{|U:'GoodsList/index',array('gid'=>$v['gid'])}">待添加☛</a>
					</if>
					
				</td>
				<td>{$v.click}</td>
				<td>{$v.gtime|date:'Y-m-d',@@}</td>
				<td>
					<a href="{|U:'GoodsList/index',array('gid'=>$v['gid'])}" class="btn btn-success"><i class="icon-th icon-white"></i>货品列表</a>
					<a href="{|U:'edit',array('gid'=>$v['gid'])}" class="btn btn-warning"><i class="icon-pencil icon-white"></i>修改</a>
					<a href="javascript:;" class="btn btn-danger" onclick="if(confirm('您确定要删除吗?货品列表也会随之删除!')) location.href='{|U:'del',array('gid'=>$v['gid'])}'; "><i class="icon-trash icon-white"></i>删除</a>
				</td>                                             
			</tr>
		</foreach>	
	</table>
	<div class="cms_page">
		{$page}
	</div>
	</div>
	</div>
	</div>
</body>
</html>